﻿using Microsoft.CodeAnalysis;

namespace AutoCADDotNetLibrary.Analyzers.Analyzers
{
    public static class ACDiagnostic
    {
        public static readonly DiagnosticDescriptor Rule_AC0001 =
           new DiagnosticDescriptor(
               "AC0001",
               "检查IExtensionApplication接口是否唯一",
               "'{0}'类型的继承存在重复。",
               nameof(AutoCADDotNetLibrary.Analyzers),
               DiagnosticSeverity.Error,
               isEnabledByDefault: true);

        public static readonly DiagnosticDescriptor Rule_AC0002 =
           new DiagnosticDescriptor(
               "AC0002",
               "检查CommandMethodAttribute的globalName是否重复",
               "CommandMethodAttribute的globalName的'{0}'值存在重复。",
               nameof(AutoCADDotNetLibrary.Analyzers),
               DiagnosticSeverity.Error,
               isEnabledByDefault: true);
    }
}
